package com.bharatonjava.swift.service;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.stereotype.Service;

import com.bharatonjava.swift.dao.IEnumerationsDao;
import com.bharatonjava.swift.domain.Enumeration;

@Service
public class EnumerationService {

	private IEnumerationsDao enumerationsDao;
	
	public void setEnumerationsDao(IEnumerationsDao enumerationsDao) {
		this.enumerationsDao = enumerationsDao;
	}
	
	@Transactional
	public List<Enumeration> getEnumerationsByGroup(String enumGroup){
		return this.enumerationsDao.getEnumerationsByGroup(enumGroup);
	}
	
	@Transactional
	public Enumeration getEnumerationByValue(String enumValue){
		return this.enumerationsDao.getEnumerationByValue(enumValue);
	}
}
